package cscie160.hw5;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
 * This interface provides requirements for any ATM implementation
 * @author Michael Melnikov   
*/
public interface ATM extends Remote
{
    /**
    * deposits sum equal to its argument
    * @param accountNumber int
    * @param amount int
    */
    public void deposit(int accountNumber, int amount) throws ATMException, RemoteException;

    /**
    * withdraws sum equal to its argument 
    * @param accountNumber int
    * @param amount int
    */
    public void withdraw(int accountNumber, int amount) throws ATMException, RemoteException;

    /**
    * returns balance on the account
    * @param accountNumber int
    */
    public int getBalance(int accountNumber) throws ATMException, RemoteException;
}